<template>
  <div class="box">
    <van-nav-bar
      fixed
      placeholder
      safe-area-inset-top
      title="设置"
      @click-left="back"
    >
      <template #left>
        <van-icon name="arrow-left" size="16px" color="#333" />
      </template>
    </van-nav-bar>
    <div>
      <van-cell title="新消息通知" size="large">
        <van-switch
          size="24px"
          inactive-color="#DDDDDD"
          active-color="#09C161"
          v-model="checked1"
        />
      </van-cell>
      <van-cell title="声音提示" size="large">
        <van-switch
          size="24px"
          inactive-color="#DDDDDD"
          active-color="#09C161"
          v-model="checked2"
        />
      </van-cell>
      <van-cell title="震动提醒" size="large">
        <van-switch
          size="24px"
          inactive-color="#DDDDDD"
          active-color="#09C161"
          v-model="checked3"
        />
      </van-cell>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      checked1: true,
      checked2: true,
      checked3: true,
    };
  },
  methods: {
    back() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.box {
  height: 100%;
  background-color: #eee;
  /deep/.van-cell {
    .van-cell__label {
      font-size: 13px;
      width: 240px;
    }
  }
  .cut {
    height: 10px;
  }
}
</style>